<?php
	/**
	 * Returned by an implementation of Database::__query or Database::__execute in case of an error.
	 * @author IMP
	 */
	
	class DatabaseError extends Exception {
		private $number;
		
		public function __construct($num, $message, $code = null){
			parent::__construct('Database Error ' . $num . ': ' . $message);
			$this->number = $num;
			$this->message = $message;
			$this->code = $code;
		}
		
		public function getNumber(){
			return $this->number;
		}
	}
?>